﻿using System.Windows.Forms;

namespace NoteHelper.BaseControl
{
    public class Helper4CheckBox : IControlHelper
    {
        public object GetValue(Control control)
        {
            var ckb = (CheckBox)control;
            return ckb.Checked;
        }

        public void SetValue(Control control, object value)
        {
            var ckb = (CheckBox)control;
            ckb.Checked = (bool)value;
        }
    }
}
